CREATE EXTERNAL TABLE IF NOT EXISTS spmi_ods.spmi_union_global_bill(
id                                                 bigint                         COMMENT 'ID',
waybill_no                                         String                         COMMENT '运单号',
bill_id                                            bigint                         COMMENT '账单ID',
bill_generation_date                               String                         COMMENT '账单产生日期',
fee_type_code                                      String                         COMMENT '费用类型CODE',
create_time                                        timestamp                      COMMENT '创建时间'
)
COMMENT '全局索引表'
PARTITIONED BY (dt STRING COMMENT '更新/创建日期 (yyyy-MM-dd)')
STORED AS PARQUET
LOCATION '/dw/hive/spmi_ods.db/external/spmi_union_global_bill'
TBLPROPERTIES (
  'parquet.column.index.access'='true'
);